x86: refine FPU selector handling code for XSAVEOPT
authorJan Beulich <jbeulich@suse.com>
Mon, 5 Aug 2013 16:42:37 +0000 (18:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 5 Aug 2013 16:42:37 +0000 (18:42 +0200)
commitc58d9f2f4844c2ce8859a8d0f26a54cd058eb51f
tree5077dcef946d26596d2264050263e55018272435
parentb0e55bd49725c7c0183eb18670997b9e5930adac
x86: refine FPU selector handling code for XSAVEOPT

Some extra tweaks are necessary to deal with the situation of XSAVEOPT
not writing the FPU portion of the save image (due to it detecting that
the register state did not get modified since the last XRSTOR).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Tested-by: Ben Guthro <ben.guthro@gmail.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/xstate.c